#include <bits/stdc++.h>

using namespace std;
#define int long long
const int inf = 0x3f3f3f3f;

void solve()
{
    int n, k;
    string s;
    cin >> n >> k >> s;
    int cnt = count(s.begin(), s.end(), '1');
    if (cnt <= k)
    {
        cout << "Alice\n";
        return;
    }
    if (k == 1)
    {
        cout << "Bob\n";
        return;
    }
    if (k > n / 2)
    {
        cout << "Alice\n";
        return;
    }
    cout << "Bob\n";
}

signed main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int _ = 1;
    cin >> _;
    while (_--)
    {
        solve();
    }
    return 0;
}